package com.ukao.cashregister.bean;

import com.ukao.cashregister.utils.CheckUtils;
import com.ukao.cashregister.utils.DecimalUtil;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by ukaodev on 2017/8/18.
 */

public class QueryPaBean  extends  BaseListBean<QueryPaBean>  implements Serializable {


        /**
         * tradeTime : 1503039072000
         * amount : 5040
         * orderNo : 2017081885441065
         * payMethodText : 会员卡(余额)
         * orderId : 149
         * payMethod : 3
         * statusText : 交易成功
         * orderOrigin : 8
         * storeName : 友靠麓云店
         * seq : 20170818145112542755
         * status : 1
         */

        private   int  refundableAmount;
        private long tradeTime;
        private int amount;
        private String orderNo;
        private String payMethodText;
        private int orderId;
        private int payMethod;
        private String statusText;
        private int orderOrigin;
        private String storeName;
        private String seq;
        private int status;
        private  String  extraJson;


    public String getExtraJson() {
        return extraJson;
    }

    public double getRefundableAmount() {
        BigDecimal b1 = new BigDecimal(refundableAmount);
        BigDecimal   b2 = new BigDecimal(100);
        BigDecimal result = b1.divide(b2).setScale(2,BigDecimal.ROUND_HALF_UP);
        return  result.doubleValue();
    }

    public long getTradeTime() {
            return tradeTime;
        }

        public void setTradeTime(long tradeTime) {
            this.tradeTime = tradeTime;
        }

        public int getAmount() {
            return amount;
        }

        public void setAmount(int amount) {
            this.amount = amount;
        }

        public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public String getPayMethodText() {
            return payMethodText;
        }

        public void setPayMethodText(String payMethodText) {
            this.payMethodText = payMethodText;
        }

        public int getOrderId() {
            return orderId;
        }

        public void setOrderId(int orderId) {
            this.orderId = orderId;
        }

        public int getPayMethod() {
            return payMethod;
        }

        public void setPayMethod(int payMethod) {
            this.payMethod = payMethod;
        }

        public String getStatusText() {
            return statusText;
        }

        public void setStatusText(String statusText) {
            this.statusText = statusText;
        }

        public int getOrderOrigin() {
            return orderOrigin;
        }

        public void setOrderOrigin(int orderOrigin) {
            this.orderOrigin = orderOrigin;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public String getSeq() {
            return seq;
        }

        public void setSeq(String seq) {
            this.seq = seq;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

}
